import React from 'react';
import { connect, useDispatch } from 'umi';

const FooComponent = (props: any) => {
  const dispatch = useDispatch();

  React.useEffect(() => {
    console.log(props.dispatch);
    console.log(dispatch);
  }, []);

  return <div>Foo Components.</div>;
};

export default connect()(FooComponent);
